package com.heima.article.service;

import com.heima.model.article.entity.ApArticle;
import com.heima.model.articleDto.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.userDto.ArticleHomeDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.lang.reflect.InvocationTargetException;

/**
 * 文章基础信息表(ApArticle)表服务接口
 *
 * @author makejava
 * @since 2022-04-16 18:02:06
 */
public interface ApArticleService {

    //发布文章
    ResponseResult<Long> save(ArticleDto dto) throws InvocationTargetException, IllegalAccessException;

    //加载首页 //**加载更多** //**加载最新
    ResponseResult load(ArticleHomeDto dto,short loadType);


}
